//
//  SC_OtherViewController.m
//  Demo
//
//  Created by 郭健 on 2020/9/3.
//  Copyright © 2020 Seacity. All rights reserved.
//

#import "SC_OtherViewController.h"

@interface SC_OtherViewController ()

@property (nonatomic, copy) NSString *str;
@property (nonatomic, copy) NSString *remindStr;

@end

@implementation SC_OtherViewController


- (instancetype)initWithDic:(NSDictionary *)dic{
    self = [super init];
    if (self) {
        self.str = [NSString stringWithFormat:@"dic:%@\n", dic];

    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"既有property又有initWith方式传值";
    self.view.backgroundColor = [UIColor whiteColor];
    
    NSString *remindStr = [NSString stringWithFormat:@"%@-->age:%ld\n-->school:%@\n-->isMale:%@",self.str, self.age, self.school, self.isMale == YES?@"男性":@"女性"];
    
    NSLog(@"------%@",remindStr);

}

@end
